package com.ccq.farm.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈超旗
 * @since 2018-06-30
 */
@TableName("oauthPermission")
public class OauthPermission extends Model<OauthPermission> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("perminsionName")
    private String perminsionName;
    private String url;
    private Integer level;
    @Version
    private Long version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPerminsionName() {
        return perminsionName;
    }

    public void setPerminsionName(String perminsionName) {
        this.perminsionName = perminsionName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OauthPermission{" +
        ", id=" + id +
        ", perminsionName=" + perminsionName +
        ", url=" + url +
        ", level=" + level +
        ", version=" + version +
        "}";
    }
}
